package twinb;

public class TimeFactor {
	
	static long cur=0;
	static double factor=1.0;
	
	public void update(long time)
	{
		if(cur<time)
			cur=time+1;
	}
	
	public double get(long time)
	{
		return factor*(Math.exp(time-cur)); 
	}

}
